<?php

class Application_Form_UpdateRates extends Zend_Form
{

    public function init() {
        $translate = new My_Action_Helper_Lang();
        
        $this->setName('update_rate');
	$name = new Zend_Form_Element_Text('name');
        $name->setLabel($translate->_('Rate name'))
	         ->setRequired(true)	            
                 ->addValidator('NotEmpty');
        
        $current = new Zend_Form_Element_Text('amount');
        $current->setLabel($translate->_('Current value'));
	         
	$submit = new Zend_Form_Element_Submit('submit');
	$submit->setLabel($translate->_('Save'))
               ->setAttrib('class', 'button');
	         
        $this->addElements(array($name, $current, $submit));	         
	$this->setMethod('post');
    }


}

